package com.usian.jyzx.user.service.impl;

import com.usian.jyzx.model.entity.user.UserAddress;
import com.usian.jyzx.user.mapper.UserAddressMapper;
import com.usian.jyzx.user.service.UserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @TODO:
 * @Author:baimu
 * @Date:2024 07 12 14 21
 **/
@Service
public class UserAddressServiceImpl implements UserAddressService {
    @Autowired
    UserAddressMapper userAddressMapper;

    @Override
    public UserAddress findUserAddressById(Long userId) {
        return userAddressMapper.findUserAddressById(userId);
    }

    @Override
    public List<UserAddress> selectUserDefaultAddress(Integer userId, Integer isDefault) {
        return userAddressMapper.selectUserDefaultAddress(userId,isDefault);
    }
}
